function Rating(module, control, marks, id) {
    var div=$(control).children();
    div.hover(function(){
        h_this = $(this).data('now');
        //Remake loop to sibling
        div.each(function (k, v) {
            if (k == h_this)
                return false;
            $(this).removeClass('grey_star').addClass('yellow_star');
        });
    },function(){
        div.filter('div:not(.red_star)').removeClass('yellow_star').addClass('grey_star');
    }).click(function() {
            div.off("mousemove mouseleave click");
            CORE.Ajax(
                {
                    module:module,
                    event:"rating",
                    mark:marks[$(this).data('now') - 1],
                    id:id
                },
                function(res) {
                    $('#jaunumi_one_record_reiting_container').replaceWith(res);
                }
            );
        });
}